﻿//using HarmonyLib;
//using RimWorld;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//using Verse;
//using Verse.AI;
//using static Verse.PawnCapacityUtility;

//namespace SZ.Mech
//{
//    [HarmonyPatch(typeof(Pawn_AbilityTracker), "CastableOffensiveAbilities")]
//    public static class Pawn_AbilityTracker_Patch
//    {
//        public static void Postfix(ref Pawn_AbilityTracker __instance, ref List<Ability> __result, LocalTargetInfo target)
//        {
//            if (__instance.pawn.def == SZ_DefOf.SZ_DragonA)
//            {
//                Log.Message("捕获到龙A");
//            }
//        }
//    }
//    [HarmonyPatch(typeof(Ability), "GetJob")]
//    public static class Ability_Patch
//    {
//        public static void Postfix(ref Ability __instance, ref Job __result, LocalTargetInfo target, LocalTargetInfo destination)
//        {
//            if (__instance.pawn.def == SZ_DefOf.SZ_DragonA)
//            {
//                Log.Message("捕获到龙A能力");

//            }
//        }
//    }
//    [HarmonyPatch(typeof(JobGiver_AIFightEnemy), "TryGiveJob")]
//    public static class JobGiver_AIFightEnemy_Patch
//    {
//        public static void Postfix(ref JobGiver_AIFightEnemy __instance, ref Job __result, Pawn pawn)
//        {
//            if (pawn.def == SZ_DefOf.SZ_DragonA)
//            {
//                Log.Message("捕获到龙工作状态");

//            }
//        }
//    }

//}
